/* 热点创作编辑器样式 */
@import './HotCreatorEditor.mobile.css';

.hot-creator-editor {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f0f2f5;
}

.editor-header {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.editor-content {
  flex: 1;
  overflow: hidden;
  background: white;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.editor-content .ant-tabs {
  height: 100%;
}

.editor-content .ant-tabs-content {
  height: calc(100% - 46px);
}

.editor-content .ant-tabs-tabpane {
  height: 100%;
}

.editor-actions {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  margin-top: 16px;
}

.generated-content-area {
  overflow-y: auto;
  padding: 12px;
  background-color: #fafafa;
  border-radius: 4px;
}

.generated-content-area::-webkit-scrollbar {
  width: 6px;
}

.generated-content-area::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.generated-content-area::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.generated-content-area::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Markdown内容样式 */
.markdown-content {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.markdown-content h1 {
  font-size: 24px;
}

.markdown-content h2 {
  font-size: 20px;
}

.markdown-content h3 {
  font-size: 18px;
}

.markdown-content p {
  margin-bottom: 1em;
}

.markdown-content ul,
.markdown-content ol {
  margin-left: 20px;
  margin-bottom: 1em;
}

.markdown-content li {
  margin-bottom: 0.5em;
}

.markdown-content code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9em;
}

.markdown-content pre {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1em;
}

.markdown-content pre code {
  background: none;
  padding: 0;
}

.markdown-content blockquote {
  border-left: 3px solid #ddd;
  padding-left: 16px;
  margin: 1em 0;
  color: #666;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

.markdown-content table th,
.markdown-content table td {
  padding: 8px;
  border: 1px solid #ddd;
}

.markdown-content table th {
  background: #f5f5f5;
  font-weight: 600;
}

.markdown-content a {
  color: #1890ff;
  text-decoration: none;
}

.markdown-content a:hover {
  text-decoration: underline;
}

.markdown-content img {
  max-width: 100%;
  height: auto;
}

/* 基础响应式布局 - 详细的移动端样式在 HotCreatorEditor.mobile.css 中 */
@media (max-width: 1200px) {
  .editor-content .ant-row > .ant-col {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 16px;
  }
}

/* 热点话题卡片样式 */
.hot-topic-card {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: white;
  border: none;
}

.hot-topic-card .ant-card-head {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.hot-topic-card .ant-card-head-title {
  color: white;
}

/* 质量评分卡片 */
.quality-score-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.generated-content-area > * {
  animation: fadeIn 0.3s ease-in;
}

/* 加载状态 */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* 工具栏样式优化 */
.ant-dropdown-menu-item-group-title {
  color: #1890ff;
  font-weight: 600;
}

.ant-dropdown-menu-item:hover {
  background: #f0f8ff;
}

.ant-dropdown-menu-item-disabled {
  opacity: 0.5;
}

/* 标签样式优化 */
.ant-tag {
  border-radius: 4px;
}

.ant-tag.ant-tag-red {
  background: #fff1f0;
  border-color: #ffccc7;
  color: #ff4d4f;
}

.ant-tag.ant-tag-green {
  background: #f6ffed;
  border-color: #b7eb8f;
  color: #52c41a;
}

.ant-tag.ant-tag-blue {
  background: #e6f7ff;
  border-color: #91d5ff;
  color: #1890ff;
}

/* 按钮组样式 */
.ant-btn-group {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.ant-btn-group .ant-btn:not(:last-child) {
  border-right-color: #d9d9d9;
}

/* 进度条样式 */
.ant-progress-text {
  font-weight: 600;
}

.ant-progress-status-success .ant-progress-bg {
  background: linear-gradient(90deg, #52c41a, #73d13d);
}

.ant-progress-status-exception .ant-progress-bg {
  background: linear-gradient(90deg, #ff4d4f, #ff7875);
}